package com.ruoyi.printer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.printer.domain.PrinterOrder;
import com.ruoyi.printer.domain.vo.PrinterVo;

import java.util.List;

/**
 * 订单Mapper接口
 * 
 * @author yanyi
 * @date 2023-07-13
 */
public interface PrinterOrderMapper extends BaseMapper<PrinterOrder>
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public PrinterOrder selectPrinterOrderByOrderId(String orderId);

    /**
     * 查询订单列表
     * 
     * @param printerOrder 订单
     * @return 订单集合
     */
    public List<PrinterOrder> selectPrinterOrderList(PrinterOrder printerOrder);

    /**
     * 新增订单
     * 
     * @param printerOrder 订单
     * @return 结果
     */
    public int insertPrinterOrder(PrinterOrder printerOrder);

    /**
     * 修改订单
     * 
     * @param printerOrder 订单
     * @return 结果
     */
    public int updatePrinterOrder(PrinterOrder printerOrder);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deletePrinterOrderByOrderId(String orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePrinterOrderByOrderIds(String[] orderIds);

    /**
     * 根据订单id查询打印信息
     * @param orderId 订单id
     * @return 结果
     */
    PrinterVo selectByOrderId(String orderId);
}
